import { deleteHttp, getHttp, postHttp, putHttp } from "../utils/http";

const api = {
    getGoodList: (data) => {
        return getHttp("/goodFriend", data);
    },
    getNewsList: (data) => {
        return getHttp("/getNews", data);
    }
    ,
    //删除消息列表中的项
    delNotice: (data) => {
        return deleteHttp("/notice", data);
    },
    //发送消息
    sendNews: (data) => {
        return postHttp("/sendNews", data);
    },
    clear: (data) => {
        return putHttp("/clearQuantity", data);
    }
}

export default api;